<template>
	<div class="contract">
		<div class="contractItems">
			<div class="contractItemsTop">
				{{contractList.room || ''}} {{contractList.room_name || ''}}
			</div>
			<div class="contractItemsBottom">
				联系电话： {{contractList.room_phone || ''}}
			</div>
		</div>
		<div class="contractItems">
			<div class="contractItemsTop">
				{{contractList.storey || ''}} {{contractList.storey_name || ''}}
			</div>
			<div class="contractItemsBottom">
				联系电话： {{contractList.storey_phone || ''}}
			</div>
		</div>

	</div>
</template>

<script>
	export default {
		data() {
			return {
				contractList: [],
				anchor_id: uni.getStorageSync('author_id'),
			}
		},
		mounted() {
			this.getContractList()
		},
		methods: {
			async getContractList() {
				const {
					data
				} = await this.$request(this.$Api.userContract, {
					anchor_id: this.anchor_id
				}, "POST")
				if (data.code !== 0) return
				this.contractList = data.data
			},
		}
	}
</script>

<style lang="scss">
	.contract {
		padding: 24rpx 0;
	}

	.contractItems {
		width: 750rpx;
		height: 154rpx;
		background: #FFFFFF;
		padding: 24rpx 36rpx;
		box-sizing: border-box;
		margin-bottom: 24rpx;

		.contractItemsTop {
			font-size: 32rpx;
		}

		.contractItemsBottom {
			font-size: 28rpx;
			color: #666666;
			margin-top: 14rpx;
		}
	}
</style>